package tiandang.core.model;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class ManagerApply {
  private Integer id;

  @NotBlank(message = "姓名不能为空")
  private String name;

  @NotBlank(message = "联系方式不能为空")
  private String phone;

  @NotBlank(message = "所在地区不能为空")
  private String address;

  @NotBlank(message = "所在小区不能为空")
  private String community;

  @NotNull(message = "小区户数不能为空")
  @Min(value = 0, message = "小区户数必须大于0")
  @Max(value = 100000, message = "小区户数不能大于10万")
  private Integer households;

  private String remarks;

  @NotBlank(message = "openid不能为空")
  private String openid;

  @NotBlank(message = "头像不能为空")
  private String imgUrl;

  // 0未处理 1已处理
  private Byte status;

  public Byte getStatus() {
    return status;
  }

  public void setStatus(Byte status) {
    this.status = status;
  }

  public String getOpenid() {
    return openid;
  }

  public void setOpenid(String openid) {
    this.openid = openid;
  }

  public String getImgUrl() {
    return imgUrl;
  }

  public void setImgUrl(String imgUrl) {
    this.imgUrl = imgUrl;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name == null ? null : name.trim();
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone == null ? null : phone.trim();
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address == null ? null : address.trim();
  }

  public String getCommunity() {
    return community;
  }

  public void setCommunity(String community) {
    this.community = community == null ? null : community.trim();
  }

  public Integer getHouseholds() {
    return households;
  }

  public void setHouseholds(Integer households) {
    this.households = households;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks == null ? null : remarks.trim();
  }
}